﻿Public Class ZeitrapportController
    Inherits KundeProjektTaskController
    Implements ZeitrapportListener

    Private form As New ZeitrapportAdapter

    Sub New()
        MyBase.init()
        form.getObservable().addListener(Me)
    End Sub

    Public Overrides Sub show()
        MyBase.show()
        Context.MITARBEITER_SELECTOR_SERVICE.refreshData()
    End Sub

    Protected Overrides Function getFormAdapter() As FormAdapter(Of System.Windows.Forms.Form, FormListener)
        Return form.getAsFormAdapter()
    End Function

    Public Sub save(ByRef zeitrapport As Zeitrapport) Implements ZeitrapportListener.save
        Context.ZEITRAPPORT_SERVICE.save(zeitrapport)
        form.hide()
    End Sub
End Class
